cmake_minimum_required(VERSION 3.0)

project(study)

add_definitions(-std=c++11 -Wall -Wshadow -lpthread)

include_directories(./)

include_directories(/usr/local/include/)

link_directories(/usr/local/lib/)
link_directories(/usr/local/lib64/)

set(lib avutil swscale swresample avcodec avformat avfilter avdevice)

add_executable(ffprobe_study ffprobe_study.cpp io_data.cpp video_encoder_core.cpp)

add_executable(print_all_file print_all_file.cpp)

target_link_libraries(ffprobe_study ${lib})
target_link_libraries(print_all_file ${lib})